package ac.zlf.springmybatis.constant;

/**
 * Created by Administrator on 2017/4/22 0022.
 */
public enum Column {

    MENU_GRADE(Indicator.MENU_GRADE_1, Indicator.MENU_GRADE_2, Indicator.MENU_GRADE_3),


    ;

    private Indicator[] indicators;

    Column(Indicator...indicators) {
        this.indicators = indicators;
    }

    public boolean isContainCode(Integer indicatorCode){
        if(indicatorCode == null){
            return false;
        }
        for(Indicator indicator : this.indicators){
            if(indicator.getCode() == indicatorCode){
                return true;
            }
        }
        return false;
    }

}
